const path = require('path')

module.exports = {
  publicPath: './',
  outputDir: 'dist/app',
  devServer: {
    proxy: {
      '/monitor/*': {
        target: 'http://192.168.1.53:9101'
        // target: "http://124.88.45.74:86"
        // target: "http://192.168.0.162:9102"

      },

      '/model/*': {
        target: 'http://192.168.1.53:9101'
      }
    }
  },
  chainWebpack: config => {
    config.resolve.alias.set(
      'trust',
      path.join(__dirname, 'package', 'index.js')
    )
  }
}
